local GuildWarMemberScoreCell = app.mvc.createListViewCell(...)
--data =
function GuildWarMemberScoreCell.create(node)
    local sprite = GuildWarMemberScoreCell.extend(node or cc.CSLoader:createNode(Res.CSGuildWarMemberScoreCell))
    if node == nil then
        ccui.Helper:doLayout(sprite)
    end
    sprite:init()
    return sprite
end


function GuildWarMemberScoreCell:init(data)
    self.super.init(self, data)
    self:setContentSize( self._ui.Panel:getContentSize() )
    self:refresh()

end

function GuildWarMemberScoreCell:refresh()
    if not self._data then
        return
    end
    local data = self._data
    local index = 1
    if self._cellModel then
        index = self._cellModel:getIndex()
    end
    self._ui.num:setString(index)
    self._ui.name:setString(data:getName())
    self._ui.scene:setString(data:getMatchNum())
    self._ui.win:setString(data:getWinCount())
    self._ui.fail:setString(data:getLoseCount())
    self._ui.exploits:setString(data:getScore())
end


return GuildWarMemberScoreCell